package com.nmsl.system.presc_temp.service.impl;

import com.nmsl.system.presc_temp.domain.PriscTempMedical;
import com.nmsl.system.presc_temp.mapper.PriscTempMedicalMapper;
import com.nmsl.system.presc_temp.service.IPrescTempMedicalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IPrescTempMedicalServiceImpl implements IPrescTempMedicalService {

    @Autowired
    private PriscTempMedicalMapper priscTempMedicalMapper;
    @Override
    public int insert(PriscTempMedical priscTempMedical) {
        return priscTempMedicalMapper.insert(priscTempMedical);
    }

    @Override
    public int delete(Long id) {
        return priscTempMedicalMapper.deleteByPrescTempId(id);
    }

}
